<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="../css/bootstrap.css">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="./index.jsp.html">蛋糕店后台</a>
            </div>
            <div>
                <ul class="nav navbar-nav">
                    <li><a href="./order_list.html">订单管理</a></li>
                    <li><a href="./user_list.html">客户管理</a></li>
                    <li><a href="./goods_list.html">商品管理</a></li>
                    <li><a href="./type_list.html">类目管理</a></li>
                    <li><a href="/user_logout">退出</a></li>
                </ul>
            </div>
        </div>
    </nav>

    <div>
		<form class="form-inline" method="post" action="/admin/type_add">
			<input type="text" class="form-control" id="input_name" name="name" placeholder="输入类目名称" required="required" style="width: 500px">
			<input type="submit" class="btn btn-warning" value="添加类目">
		</form>
	</div>

    <table class="table table-bordered table-hover">

		<tbody><tr>
			<th width="5%">ID</th>
			<th width="10%">名称</th>
			<th width="10%">操作</th>
		</tr>

		
			<tr>
				<td><p>1</p></td>
				<td><p>冰淇淋系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=1&amp;name=%E5%86%B0%E6%B7%87%E6%B7%8B%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=1">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>2</p></td>
				<td><p>零食系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=2&amp;name=%E9%9B%B6%E9%A3%9F%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=2">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>3</p></td>
				<td><p>儿童系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=3&amp;name=%E5%84%BF%E7%AB%A5%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=3">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>4</p></td>
				<td><p>法式系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=4&amp;name=%E6%B3%95%E5%BC%8F%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=4">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>5</p></td>
				<td><p>经典系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=5&amp;name=%E7%BB%8F%E5%85%B8%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=5">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>8</p></td>
				<td><p>节日系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=8&amp;name=%E8%8A%82%E6%97%A5%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=8">删除</a>
				</td>
			</tr>
		
			<tr>
				<td><p>11</p></td>
				<td><p>买不起系列</p></td>
				<td>
					<a class="btn btn-primary" href="/admin/type_edit.jsp?id=11&amp;name=%E4%B9%B0%E4%B8%8D%E8%B5%B7%E7%B3%BB%E5%88%97">修改</a>
					<a class="btn btn-danger" href="/admin/type_delete?id=11">删除</a>
				</td>
			</tr>
		


	</tbody></table>

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  </body>
</html>